<div class="container-fluid">
    <div class="row-fluid">
        <div class="span3"><?php echo $this->partial('choix/menu.phtml') ?></div>
        <div class="span9">
        <ul class="nav nav-tabs">
        	<li>
        		<h4><a href="<?php echo $this->baseUrl('admin/category/add')?>/?num_vente=<?php echo $this->request()->getParam('num_vente') ?>">Ajouter une catégorie</a></h4>
        	</li>
        	<li>
        		<label>&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;</label>
        	</li>
        	<li>
        		<label>&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;</label>
        	</li>
        	<!--
        	<li>
        		<h4><a href="<?php echo $this->baseUrl() ?>/admin/category/prec">Catégories de ventes précédentes</a></h4>
        	</li>
        	 -->
        </ul>
            <div class="wrap">
                <div id="main-content">
                    <table>
                    	<thead>
                    		<tr>
                    			<th align="center">Ordre</th>
                            	<th>Catégorie</th>
                                <th>TVA</th>
                    			<th>Editer</th>
                    			<th>Supprimer</th>
                    		</tr>
                    	</thead>
                        <tfoot>
                            <tr>
                                <td colspan="6">
                                    <?php if(count($this->paginator) > 1) :?>
                                        <?php echo $this->paginationControl($this->paginator, 'Sliding', '_pagination.phtml'); ?>
                                    <?php endif;?>
                                    <!-- End .pagination -->

                                    <div class="clear"></div>
                               </td>
                            </tr>
                        </tfoot>
                    	<tbody>
                    	<?php foreach($this->paginator as $row) :?>
                    		<tr>
                                <td><?php echo $row['ordre']; ?></td>
                    			<td style="text-align:left"><?php echo stripslashes($row['nom']); ?></td>
                                <td><?php echo $row['tva']; ?></td>
                    			<td><a href="<?php echo $this->baseUrl() ?>/admin/category/add?num=<?php echo $row['p_categories']?>&num_vente=<?php echo $this->num_vente;?>"><img src="<?php echo $this->baseUrl()?>/images/pencil.png"></a></td>
                    			<td><a href="<?php echo $this->baseUrl() ?>/admin/category/delete?num=<?php echo $row['p_categories']?>&num_vente=<?php echo $this->num_vente;?>"><img src="<?php echo $this->baseUrl()?>/images/cross.png"></a></td>
                    	<?php endforeach;?>
                    	</tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>